import request from '@/utils/request'

// 查询任务情况列表
export function listPress(query) {
  return request({
    url: '/shape/press/list',
    method: 'get',
    params: query
  })
}

// 查询任务情况详细
export function getPress(id) {
  return request({
    url: '/shape/press/' + id,
    method: 'get'
  })
}

// 打回任务情况
export function callPress(id) {
  return request({
    url: `/shape/press/${id}`,
    method: 'put',
  })
}

// 修改任务情况
export function updatePress(data) {
  return request({
    url: '/shape/press',
    method: 'put',
    data: data
  })
}

// 删除任务情况
export function delPress(id) {
  return request({
    url: '/shape/press/' + id,
    method: 'delete'
  })
}
